<template>
    <div class="wrapper">
        <div class="grow-text">
            Hello World!
        </div>
    </div>
</template>

<script setup>
</script>

<style scoped>
.wrapper {
    height: 100vh;
    display: grid;
    place-items: center;
}

.grow-text {
    width: 12ch;
    animation: grow 2s steps(12), blink .5s step-end infinite alternate;
    white-space: nowrap;
    overflow: hidden;
    border-right: 3px solid #000000;
    font-family: monospace;
    font-size: 6em;
    color: #000000;
}

@keyframes grow {
    from {
        width: 0
    }
}

@keyframes blink {
    50% {
        border-color: transparent
    }
}
</style>